package com.test;

import java.util.ArrayList;
import java.util.List;

public class ShowMeBug2
{
    public static void main(String[] args)
    {
        List<ScoreVo> scoreList = getScoreList();
        // TODO 请编写代码实现题目要求
        for (ScoreVo sv : scoreList)
        {

        }
    }

    public static List<ScoreVo> getScoreList()
    {
        List<ScoreVo> scoreList = new ArrayList<ScoreVo>();
        ShowMeBug2 showMeBug = new ShowMeBug2();
        scoreList.add(showMeBug.new ScoreVo("张三", "语文", 80));
        scoreList.add(showMeBug.new ScoreVo("张三", "物理", 76));
        scoreList.add(showMeBug.new ScoreVo("李四", "语文", 78));
        scoreList.add(showMeBug.new ScoreVo("李四", "数学", 88));
        scoreList.add(showMeBug.new ScoreVo("李四", "物理", 87));
        scoreList.add(showMeBug.new ScoreVo("王五", "语文", 67));
        scoreList.add(showMeBug.new ScoreVo("张三", "数学", 76));
        scoreList.add(showMeBug.new ScoreVo("李四", "英语", 89));
        scoreList.add(showMeBug.new ScoreVo("王五", "数学", 65));
        scoreList.add(showMeBug.new ScoreVo("赵六", "物理", 95));
        scoreList.add(showMeBug.new ScoreVo("王五", "英语", 78));
        scoreList.add(showMeBug.new ScoreVo("王五", "物理", 65));
        scoreList.add(showMeBug.new ScoreVo("赵六", "语文", 89));
        scoreList.add(showMeBug.new ScoreVo("赵六", "英语", 87));
        scoreList.add(showMeBug.new ScoreVo("黄七", "语文", 78));
        scoreList.add(showMeBug.new ScoreVo("黄七", "数学", 65));
        scoreList.add(showMeBug.new ScoreVo("刘八", "英语", 87));
        scoreList.add(showMeBug.new ScoreVo("张三", "英语", 56));
        scoreList.add(showMeBug.new ScoreVo("黄七", "物理", 76));
        scoreList.add(showMeBug.new ScoreVo("刘八", "数学", 89));
        scoreList.add(showMeBug.new ScoreVo("黄七", "英语", 98));
        scoreList.add(showMeBug.new ScoreVo("刘八", "语文", 56));
        scoreList.add(showMeBug.new ScoreVo("刘八", "物理", 76));
        scoreList.add(showMeBug.new ScoreVo("钱九", "语文", 88));
        scoreList.add(showMeBug.new ScoreVo("钱九", "数学", 67));
        scoreList.add(showMeBug.new ScoreVo("钱九", "英语", 75));
        scoreList.add(showMeBug.new ScoreVo("茅十八", "英语", 65));
        scoreList.add(showMeBug.new ScoreVo("茅十八", "数学", 43));
        scoreList.add(showMeBug.new ScoreVo("茅十八", "语文", 45));
        scoreList.add(showMeBug.new ScoreVo("茅十八", "物理", 56));

        return scoreList;
    }

    private class ScoreVo
    {
        public String studentName;
        public String courseName;
        public double score;

        public ScoreVo(String studentName, String courseName, double score)
        {
            this.studentName = studentName;
            this.courseName = courseName;
            this.score = score;
        }

        public String toString()
        {
            return this.studentName + "\t" + this.courseName + "\t" + this.score;
        }
    }

    private class StudentVo
    {
        private String name;
        private double chineseScore;
        private double mathScore;
        private double englishScore;
        private double physicalScore;
        private double totalScore;

        public StudentVo()
        {

        }

        public String getName()
        {
            return name;
        }

        public void setName(String name)
        {
            this.name = name;
        }

        public double getChineseScore()
        {
            return chineseScore;
        }

        public void setChineseScore(double chineseScore)
        {
            this.chineseScore = chineseScore;
        }

        public double getMathScore()
        {
            return mathScore;
        }

        public void setMathScore(double mathScore)
        {
            this.mathScore = mathScore;
        }

        public double getEnglishScore()
        {
            return englishScore;
        }

        public void setEnglishScore(double englishScore)
        {
            this.englishScore = englishScore;
        }

        public double getPhysicalScore()
        {
            return physicalScore;
        }

        public void setPhysicalScore(double physicalScore)
        {
            this.physicalScore = physicalScore;
        }

        public double getTotalScore()
        {
            return totalScore;
        }

        public void setTotalScore(double totalScore)
        {
            this.totalScore = totalScore;
        }
    }
}
